package com.xiaobing.crm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;


/**
 * <p>
 * 分享
 * </p>
 *
 * @author tui
 * @since 2024-07-16
 */
@Data
@TableName("user")
@Schema(name = "UserEntity",description = "分享")
public class UserEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description ="Id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description ="微信id")
    @TableField("wx_id")
    private String wxId;

    @Schema(description ="微信昵称")
    @TableField("wx_nickname")
    private String wxNickname;

    @Schema(description ="角色")
    @TableField("roles")
    private String roles;

    @Schema(description ="头像地址")
    @TableField("avatar_url")
    private String avatarUrl;

    @Schema(description ="创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @Schema(description ="修改时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @Schema(description ="积分")
    @TableField("bonus")
    private Integer bonus;
}
